<?
$page_title="Read  Experiences";
$mindex=3;
$profile_menu=1;
?>
<?include("includes/header.php") ?>
<?
$memberId=getMemberId();
if($memberId==0) kickOut();
$memberExpDetails=getMemberExpDetail();
//print_r($memberExpDetails); exit;
?>
<script src="prototype.js" language="javascript"></script>
<script src="registrant.js?v15" language="javascript"></script>
<script src="calendarDateInput.js?v1" language="javascript"></script>
<div class="break"></div>
<table width="100%" border="1">
<tr>
<th>S.No</th><th>Member Name</th><th>Experience </th><th>File</th>
</tr>
<? $i=1;?>
<? foreach($memberExpDetails as $exp) { ?>
<?
 if($exp["filename"]!=""){
 
 $linkResumeUrl=" <a target='_blank' href='images/experience/".$exp[member_id]."/".$exp["filename"]."'>".Download."</a>";
 
 }else {
 $linkResumeUrl='Not Available';
 }
 
 ?>
 
 <?php $string = strip_tags($exp['experiences']);

if (strlen($string) > 5) {

    // truncate string
    $stringCut = substr($string, 0, 5);

    // make sure it ends in a word so assassinate doesn't become ass...
    $string = substr($stringCut, 0, strrpos($stringCut, ' ')).'... <a target="_blank" href="expereince.php?expid='.base64_encode($exp[member_id]).'">Read More</a>'; 
}

?>
<tr>
<td><?=$i;?></td><td><?=$exp['full_name'];?></td><td><?=$string;?></td><td><?=$linkResumeUrl?></td>
</tr>
<? } ?>